unit InitialForm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

var
  InitialAmount: Integer;

type
  TInitial = class(TForm)
    Edit1: TEdit;
    BitBtn1: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
    procedure Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);

  var
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Initial: TInitial;

implementation

{$R *.dfm}

procedure TInitial.BitBtn1Click(Sender: TObject);
begin
  if (Edit1.Text <> '') then
  begin
    InitialAmount := StrToInt(Edit1.Text);
    Close;
  end;
end;

procedure TInitial.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key = VK_RETURN then
    BitBtn1Click(Self);
  end;

end.
